@echo off

rem 打开第一个终端窗口并进入 /admin 目录执行命令
start cmd /k "cd admin && echo Installing dependencies in /admin... && npm i && echo Starting server in /admin... && npm run serve"

rem 打开第二个终端窗口并进入 /server 目录执行命令
start cmd /k "cd server && echo Installing dependencies in /server... && npm i && echo Starting server in /server... && npm run serve"

rem 打开第三个终端窗口并进入 /web 目录执行命令
start cmd /k "cd web && echo Installing dependencies in /web... && npm i && echo Starting server in /web... && npm run serve"

pause